var urls = [
    'https://developer.chrome.com/docs/extensions/reference/tabs/#type-Tab',
    'https://github.com/imandolatkia/Android-Animated-Theme-Manager',
    'https://www.google.com.hk/search?q=javascript+array+join+to+string&oq=javascript+array+join+to+string&aqs=chrome..69i57.8910j0j4&sourceid=chrome&ie=UTF-8',
    'https://www.google.com.hk/search?q=devtools+full+long+log&newwindow=1&ei=tw6nYZfLBKKLr7wPppy_iAE&ved=0ahUKEwjXgqTC9cH0AhWixYsBHSbODxEQ4dUDCA4&uact=5&oq=devtools+full+long+log&gs_lcp=Cgdnd3Mtd2l6EANKBAhBGAFQ8gRYlgtghg1oAXAAeACAAX2IAbMEkgEDMC41mAEAoAEBwAEB&sclient=gws-wiz',
    'https://stackoverflow.com/questions/4482950/how-to-show-full-object-in-chrome-console',
    'https://juejin.cn/post/6955427322291814431',
    'https://juejin.cn/post/7027443294082695181',
    'https://juejin.cn/post/7035952921208422436',
    'https://remix.run/docs/en/v1/tutorials/blog',
    'https://juejin.cn/post/6972476138203381790',
    'https://developers.google.com/ml-kit/vision/barcode-scanning/android',
    'chrome://extensions/',
    'https://developer.chrome.com/docs/extensions/reference/tabs/#type-Tab',
    'https://github.com/imandolatkia/Android-Animated-Theme-Manager',
    'https://www.google.com.hk/search?q=javascript+array+join+to+string&oq=javascript+array+join+to+string&aqs=chrome..69i57.8910j0j4&sourceid=chrome&ie=UTF-8',
    'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join',
    'https://juejin.cn/post/6955427322291814431',
    'https://juejin.cn/post/7027443294082695181',
    'https://juejin.cn/post/7035952921208422436',
    'https://remix.run/docs/en/v1/tutorials/blog',
    'https://juejin.cn/post/6972476138203381790',
    'https://developers.google.com/ml-kit/vision/barcode-scanning/android',
    'chrome://extensions/',
    'https://sspai.com/post/44307',
    'https://cxybb.com/article/w366549434/104690388',
    'https://blog.csdn.net/javac_jj/article/details/95168521',
    'https://github.com/googlecodelabs/android-workmanager/issues/157',
    'https://stackoverflow.com/questions/8498592/extract-hostname-name-from-string',
    'https://qastack.cn/programming/1368264/how-to-extract-the-hostname-portion-of-a-url-in-javascript',
    'https://www.google.com.hk/search?q=weread.qq.+om&oq=weread.qq.+om&aqs=chrome..69i57.5078j0j7&sourceid=chrome&ie=UTF-8',
    'https://sspai.com/post/44307',
    'https://cxybb.com/article/w366549434/104690388',
    'https://blog.csdn.net/javac_jj/article/details/95168521',
    'https://github.com/googlecodelabs/android-workmanager/issues/157',
    'https://stackoverflow.com/questions/8498592/extract-hostname-name-from-string',
    'https://qastack.cn/programming/1368264/how-to-extract-the-hostname-portion-of-a-url-in-javascript',
    'https://www.google.com.hk/search?q=weread.qq.+om&oq=weread.qq.+om&aqs=chrome..69i57.5078j0j7&sourceid=chrome&ie=UTF-8'
]

class TB{
    constructor(url){
        this.url = url
    }

}
var sortedTabs = urls.map((url)=>new TB(url))

sortedTabs.sort((a, b) => {
    if (a.url == b.url) {
        return 0
    }else if (a.url < b.url) {
        return -1
    }else return 1
})

// sortedTabs.forEach((url) => {
//     console.log(url.url+"\n")
// })

// console.log("www.google.com" > "www.baidu.com")
const data = [
    { key: "alan", value: 12 },
    { key: "mike", value: 18 }
];

// 就这句话，换行主要是为了看清楚，可以不换
const result = Object.fromEntries(
    data.map(({ key, value }) => [key, value])
);
let res = Object.fromEntries([["alice",12,"me",21],["lilei",14],["helen",23]])
console.log(res)
console.log(result);


(function me(id){
    console.log(id)
}("hello"))